package com.zdxlz.fcmp.upms.api.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zdxlz.fcmp.upms.api.dto.SystemLogReqDto;
import com.zdxlz.fcmp.upms.api.entity.SystemOperLog;
import com.zdxlz.fcmp.upms.api.mapper.SystemOperLogMapper;
import com.zdxlz.fcmp.upms.api.service.ISystemOperLogService;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
 
/**
 * 系统操作日志记录表(SystemOperLog)表服务实现类
 *
 * @author makejava
 * @since 2025-03-18 11:53:16
 */
@Service
public class SystemOperLogServiceImpl<T> extends ServiceImpl<SystemOperLogMapper, SystemOperLog> implements ISystemOperLogService<T> {
 
   /**
    * 分页查询数据
    */
    @Override
    public Page<T> selectSystemOperLog(Page<SystemOperLog> page, SystemLogReqDto dto){
 
        return null;
    }
    
   /**
    * 新增一条数据
    */
    @Override
    @Transactional(rollbackFor = Exception.class)
    public boolean insertSystemOperLog(SystemOperLog entity){
        baseMapper.insert(entity);
        return true;
    }
    
   /**
    * 通过ID更新一条数据
    */
    @Override
    @Transactional(rollbackFor = Exception.class)
    public boolean updateSystemOperLog(SystemOperLog entity){
        baseMapper.updateById(entity);
        return true;
    }
    
   /**
    * 通过ID删除一条或多条数据
    */
    @Override
    @Transactional(rollbackFor = Exception.class)
    public boolean deleteSystemOperLog(List<Integer> ids){
    baseMapper.deleteByIds(ids);
        return true;
    }
}
